# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=xorg-xlsfonts
pkgver=1.0.7
pkgrel=1
pkgdesc='List available X fonts'
url='https://xorg.freedesktop.org/'
license=('custom')
arch=('x86_64')
depends=('libx11')
makedepends=('xorg-util-macros')
source=(https://xorg.freedesktop.org/archive/individual/app/xlsfonts-${pkgver}.tar.xz{,.sig})
sha512sums=('ec82be0a97500a9e64fb5a6adbbec470b249b1267c3081c2bd44cd3e7148107517d1234c1da2f81b0405230ab03ad2943ea53756c3380f4d561665b38d0cedc0'
            'SKIP')
validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
	cd xlsfonts-${pkgver}
	./configure --prefix=/usr
	make
}

package() {
	cd xlsfonts-${pkgver}
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
